package com.seal.commons.generator.db;

import com.seal.commons.exception.UnsupportedBusinessException;
import com.seal.commons.generator.enums.DbType;


/**
 * 功能描述: <br/>
 *
 * @author yong.huang
 * @date: 2020-09-11 14:07<br/>
 * @since JDK 1.8
 */
public class TemplateSqlFactory{

    public static TemplateSql create(DbType dbType){
        if(DbType.MYSQL.equals(dbType)){
            return new MysqlTemplateSql();
        }
        throw new UnsupportedBusinessException(10001, "暂不支持该数据库类型");
    }


}